package com.lamda.worker.event;

import com.lamda.worker.command.CommandExecutor;
import com.lamda.worker.vo.ResultVo;
import org.izao.DataCallBack;
import org.izao.DataEvent;
import org.izao.DataListener;
import org.izao.IZaoClient;
import org.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.io.IOException;

/**
 * Created by MJiao on 15/8/24.
 */
@Component
public class WorkerDispatcher {

    private IZaoClient iZaoClient;

    @Autowired
    private CommandExecutor commandExecutor;

    public void registerEvent() {
    }

    public boolean isNeedResResultToServer(DataEvent event) {
        return event.getMessage().has("serverReqId");
    }


    public IZaoClient getIZaoClient() {
        return iZaoClient;
    }

    public void setIZaoClient(IZaoClient iZaoClient) {
        this.iZaoClient = iZaoClient;
    }
}
